package cn.edu.ujs.coor.request.node;

import cn.edu.ujs.coor.model.Node;
import cn.edu.ujs.coor.request.BaseRequest;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class NodeAddRequest extends BaseRequest<Node> {

    @NotBlank(message = "节点名称非空")
    private String title;

    private String icon;

    @NotBlank(message = "路径非空")
    private String path;

    private String pid;

    @NotBlank(message = "节点等级非空")
    private String level;

    @NotBlank(message = "节点排序非空")
    private String sort;

    private String operation;

    private String status;
}
